package Day5;

/**
 * @Author kalista
 * @Description
 * @Date 2020/11/9  11:18
 **/
public class ArrayCopyTest {
    public static void main(String[] args) {

        String name = "王聪聪";
        String[] namearr = {"alista","kalista","kalista","kalista","kalista","kalista","kalista","kalista"};


        // 数组的拷贝
        String[] s = {"独孤求败","西方失败","剑南春","东方不败"};
        String[] sNew  = new String[s.length];
        for (int i = 0; i < s.length; i++) {
            sNew[i] = s[i];
        }

        for(String ss : sNew){
            System.out.println(ss);
        }

    }
}
